Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

WIP: Introduces a new design for web-inspector #2030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ronaldosilva
Copy link

This is an UI implementation to visualyze flow data that
is being generated by Soletta.

This patch adds the basic features/images of the
tool.

Signed-off-by: Ronaldo Pereira [email protected]

This is an UI implementation to visualyze flow data that
is being generated by Soletta.

This patch adds the basic features/images of the
tool.

Signed-off-by: Ronaldo Pereira <[email protected]>
@ronaldosilva
Copy link
Author

This is a WIP patch, please do not merge it already. It misses some needed functionalities.

Could you guys please start reviewing this patch ?


this.name = params["name"];
this.value = params["value"];
this.type = params["type"] || "in";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you receiving empty type? That shouldn't happen

@bdilly
Copy link
Contributor

bdilly commented May 13, 2016

@ronaldosilva regarding licenses, please add it on all files, just like you have done with style.css

It would be nice to have a license for image assets as well. Maybe CC or whatever that makes sense for you. I suppose you're doing the same on Soletta Dev-App.

this.raw = JSON.stringify(payload, null, 4);
this.key = key;
this.widgetName = payload.id; //change to 'name ?'
this.uid = payload.path[payload.path.length-1];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but you should also save payload.path somewhere and have some parenting/container. This will happen when you have flows that use sub flows. I'm not sure how to represent that in a nice graphical way. To the parent flow, the internal is represented as a single node with input and output ports. We can either "click to enter/expand" or show inlined with some graphical delimiter.

@barbieri
Copy link

@ronaldosilva nice work, man! I did many comments (as usual in my reviews) and I believe the engineers can help a bit to improve the data structures in the JS, but that's minor. Keep working and once you're happy with the inspector UX we can help with that.


'use strict'

function Modal(){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split the { from the Modal()

function Modal() {

this.widget = params["widget"];
this.port_index = params["port_index"];
this.required = params["required"] || true;
this.key = "port_" + this.type + "_" + params["key"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these parameters should be written in dot notation instead of using ['key']

It would be something like this:

this.required = params.required;

You can see more info about this here:
https://jslinterrors.com/a-is-better-written-in-dot-notation

@brunobottazzini
Copy link
Contributor

@ronaldosilva, I just reviewed and your patch is awesome, I just mentioned minor things...

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants